package cn.edu.dgut.css.sai.demo.remoteloadjar.remote;

import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Sai
 * Created by Sai on 2020/6/8.
 */
@Configuration
@AutoConfigureBefore(WebMvcAutoConfiguration.class)
public class RemoteAutoConfiguration {

    public RemoteAutoConfiguration() {
        System.out.println("RemoteAutoConfiguration初始化");
    }

    @Bean
    public RemoteController remoteController() {
        return new RemoteController();
    }

}
